<template>
  <div class="main_box">
    <el-row>
      <el-col :span="12">
        <Crumbs></Crumbs>
      </el-col>
      <el-col :span="12">
        <div class="opration_wrap">
          <el-button type="primary" icon="fa fa-mail-forward" @click="returnList">返回</el-button>
        </div>
      </el-col>
    </el-row>
    <div class="detail_wrap">
      <div class="tit">
        <h2>基础信息</h2>
      </div>
      <div class="con">
        <el-table-column width="140" align="center" prop="specId" label="规格ID" v-if="false"></el-table-column>
        <el-table-column width="140" align="center" prop="specName" label="规格名称"></el-table-column>
        <el-table-column width="200" align="center" prop="specValue" label="规格值"></el-table-column>
        <el-table-column width="200" align="center" prop="institutionName" label="医院名称"></el-table-column>
        <el-table-column width="140" align="center" prop="createUserName" label="创建人"></el-table-column>
        <el-table-column width="140" align="center" prop="createDate" label="创建时间"></el-table-column>
        <el-table-column width="200" align="center" prop="specNote" label="备注"></el-table-column>

        <ul>
          <li>
            <label class="label">规格名称</label>
            <span>{{DetailData.specName}}</span>
          </li>
          <li>
            <label class="label">规格值</label>
            <span>{{DetailData.specValue}}</span>
          </li>
          <li>
            <label class="label">医院名称</label>
            <span>{{DetailData.institutionName}}</span>
          </li>
          <li>
            <label class="label">创建人</label>
            <span>{{DetailData.createUserName}}</span>
          </li>
          <li>
            <label class="label">创建时间</label>
            <span>{{DetailData.createDate}}</span>
          </li>
          <li>
            <label class="label">备注</label>
            <span>{{DetailData.specNote}}</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import Crumbs from "@/components/Crumbs";
import { FORMAT_DATE_YYYY_MM_DD } from "@/constants/constants";
export default{
    data(){
        return {
          DetailData: ""
        }
    },
    components:{
      Crumbs
    },
    methods:{
      getData(){
        this.$Get(this.$Config.api.cmbcGetAccountInfo, {ccaId:this.$route.query.id})
        .then(res => {
          this.DetailData = res.data
        })
      },
      returnList(){
        this.$router.push({path: '/cmbc/openAccountManagement'});
      },
      formatState(state){
        if (state == "00"){
          return "开户成功"
        }else if (state == "01"){
          return "开户失败"
        }else if (state == "02"){
          return "开户正在处理中"
        }else if (state == "03"){
          return "销户中"
        }else if (state == "04"){
          return "已销户"
        }
      },
      formatErrorFlag(cellValue){ //1.身份证照片上传 2.开户 3.销户
        if (cellValue == 1){
          return "身份证照片上传"
        }else if (cellValue == 2){
          return "开户"
        }else if (cellValue == 3){
          return "销户"
        }
      },
    },
    mounted(){
      this.getData();
    }
}
</script>
<style lang="scss" src="@/assets/css/views/Detail.scss" scope>
</style>
